<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>权限管理</title>
<jsp:include page="/WEB-INF/views/common/link.jsp" />
</head>
<body class="hold-transition skin-blue sidebar-mini">

	<div class="wrapper">
		<%@include file="/WEB-INF/views/common/navbar.jsp"%>
		<!--菜单回显-->
		<c:set var="currentMenu" value="permission" />
		<%@include file="/WEB-INF/views/common/menu.jsp"%>
		<div class="content-wrapper">
			<section class="content-header">
				<h1>权限列表</h1>
				<a href="#" class="btn btn-info btn-ls btn_reload" data-url="/permission/reload" style="margin-top: 10px">重载权限</a>
			</section>
			<section class="content">
				<div class="box">
                    <!--高级查询--->
                    <form class="form-inline" id="searchForm"
                          action="/permission/list" method="post">
                        <input type="hidden" name="currentPage" id="currentPage" value="1">
                    </form>
					<!--编写内容-->
					<div class="box-body table-responsive no-padding ">
						<table class="table table-hover table-bordered">
							<tr>
								<th align="center">编号</th>
								<th>模块名</th>
								<th>权限名称</th>
								<th>权限表达式</th>
							</tr>
							<c:forEach var="p" items="${pageResult.list}" varStatus="vs">
								<tr>
									<td style="width: 50px;" align="center">${vs.count}</td>
									<td>${p.module.name}</td>
									<td>${p.name}</td>
									<td>${p.expression}</td>
								</tr>
							</c:forEach>
						</table>
						<!--分页-->
						<%@include file="/WEB-INF/views/common/page.jsp"%>
					</div>
				</div>
			</section>
		</div>
		<%@include file="/WEB-INF/views/common/footer.jsp"%>
	</div>
</body>
</html>
